home *** CD-ROM | disk | FTP | other *** search
Wrap
-- card: 28177 from stack: in -- bmap block id: 29000 -- flags: 0000 -- background id: 4180 -- name: Handling Mouse Clicks ----- HyperTalk script ----- on arrowKey direction if direction = "left" then visual scroll right go to prev card else if direction = "right" then visual scroll left go to card "Error Messages" else if direction = "up" then visual dissolve go to card "Chart" end if end arrowKey -- part 5 (button) -- low flags: 00 -- high flags: 0001 -- rect: left=228 top=302 right=328 bottom=269 -- title width / last selected line: 0 -- icon id / first selected line: 2162 / 2162 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: return ----- HyperTalk script ----- on mouseUp visual dissolve go to card "Chart" end mouseUp -- part 6 (button) -- low flags: 00 -- high flags: 0001 -- rect: left=454 top=300 right=327 bottom=485 -- title width / last selected line: 0 -- icon id / first selected line: 27009 / 27009 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: next ----- HyperTalk script ----- on mouseUp visual scroll left go to card "Error Messages" end mouseUp -- part contents for background part 5 ----- text ----- Handling Mouse Clicks -- part contents for background part 6 ----- text ----- The user can click and drag the mouse in a variety of locations: • in the menu bar • in the title bar • on any of the window contols: grow box, zoom box, scroll bars, or close box • in the content of the window MacApp will handle all the mouse clicks in the first three categories. In the last case, it will call the DoMouseCommand of the view where the mouse was clicked. You may customize this method as you wish.